Crate oxc_ast

source ·
Expand description

Oxc AST

This is almost similar to estree except a few places:

  • Identifier is replaced with explicit BindingIdentifier, IdentifierReference, IdentifierName per spec
  • AssignmentExpression.left Pattern is replaced with AssignmentTarget

Cargo Features

  • "serde" enables support for serde serialization

Modules

Structs

  • AST builder for creating AST spans
  • A big unsigned integer type.
  • Source Type for JavaScript vs TypeScript / Script vs Module / JSX
  • Newtype for working with text ranges
  • Trivias such as comments

Enums

Constants

Traits

  • Get the span for an AST node
  • Syntax tree traversal
  • Syntax tree traversal to mutate an exclusive borrow of a syntax tree in place.

Type Definitions